//
//  HelloWorld.m
//  ReactNativeDemo
//
//  Created by AceWei on 2017/8/20.
//  Copyright © 2017年 AceWei. All rights reserved.
//

#import "HelloWorld.h"

@implementation HelloWorld

RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(sayHello:(NSString *) msg
                  event:(RCTResponseSenderBlock)callback)
{
    NSLog(@"打印Hello World%@",msg);
    
//    callback(@[@1, @2, @3]);
    
    NSArray *events = [NSArray arrayWithObjects:@"测试结果",nil];
    callback(@[[NSNull null], events]);
}

@end
